package com.epam.qanda.db.service;

import com.epam.qanda.db.dao.impl.CategoryDao;

public class CategoryService {
	public <T> void create(T element) {
		new CategoryDao().create(element);
	}

	public <T> T read(Integer id) {
		return new CategoryDao().read(id);
	}

	public void delete(Integer id) {
		new CategoryDao().delete(id);
	}

	public <T> void update(T element) {
		new CategoryDao().update(element);
	}
	
	public <T> T getAllCategories(){
		return new CategoryDao().getAllCategories();
	}
}
